import request from '@/utils/request'

// 查询任务日志列表
export function listTaskProcess(query) {
  return request({
    url: '/task/taskProcess/list',
    method: 'get',
    params: query
  })
}

// 查询任务日志详细
export function getTaskProcess(id) {
  return request({
    url: '/task/taskProcess/' + id,
    method: 'get'
  })
}

// 新增任务日志
export function addTaskProcess(data) {
  return request({
    url: '/task/taskProcess',
    method: 'post',
    data: data
  })
}

// 修改任务日志
export function updateTaskProcess(data) {
  return request({
    url: '/task/taskProcess',
    method: 'put',
    data: data
  })
}

// 删除任务日志
export function delTaskProcess(id) {
  return request({
    url: '/task/taskProcess/' + id,
    method: 'delete'
  })
}

// 删除任务日志
export function retryCallback(id) {
  return request({
    url: '/task/taskProcess/retryCallback/' + id,
    method: 'get'
  })
}